<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
</head>

<body>
<div id="hello-vue" class="demo">
  <input type="text"   @change="btnChange($event)">
  <select @change="btnChange($event)">
    <option value="1">1</option>
    <option value="2">2</option>
  </select>
</div>

<script>


const app =  Vue.createApp({
  data() {
  },
  methods:{
    btnChange:function(event){
      console.log("event:",event)
      console.log("event.target:",event.target)
      console.log("event.target.value:",event.target.value)
      alert(event.target.value)

    }
  }

    
})


app.mount('#hello-vue')

</script>
</body>
</html>
